#ifndef WORKER_THREAD_H
#define WORKER_THREAD_H

#include <boost/thread/thread.hpp>

class worker_thread {
public:
	worker_thread():_interrupted(false) {}
	virtual ~worker_thread() {}

	void interrupt() { _interrupted = true; }
	bool is_interrupted() const { return _interrupted; }
	virtual void run() = 0;
	virtual void start() = 0;
private:
	bool _interrupted;
};

#endif
